package com.entrogy.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @ClassName HomeworkEntity
 * @Description
 * @Author luoxingjiang
 * @Date 2019/7/22 0022 上午 11:17
 * @Version 1.0
 **/
@SuppressWarnings("serial")
@AllArgsConstructor
@NoArgsConstructor
@Data
@Accessors(chain = true)
@ApiModel(value="作业",description="作业实体类" )
public class HomeworkEntity {

    @ApiModelProperty(value = "自增id")
    private Integer id;

    @ApiModelProperty(value = "作业内容", required = true)
    private String content;

    @ApiModelProperty(value = "教师id", required = true)
    private String teacherId;

    @ApiModelProperty(value = "课程名称", required = true)
    private String courseName;

    @ApiModelProperty(value = "课程id", required = true)
    private Integer courseId;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "班级id", required = true)
    private Integer classId;

    @ApiModelProperty(value = "班级名称", required = true)
    private String className;

    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "发送时间，格式yyyy-MM-dd HH:mm:ss", required = true)
    private Date sendTime;

    @ApiModelProperty(value = "图片地址数组")
    private List<String> imageUrls;

    @ApiModelProperty(value = "教师姓名")
    private String teacherName;

    @ApiModelProperty(value = "学校id")
    private Integer schoolCode;

}
